package com.huike.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("sys_department")
public class Department {

    private Integer id; //部门ID
    @TableField("name")
    private String deptName; //部门名称
    private Short  orderNum; //排序
    private Short status; //状态 0停用 1正常
    private LocalDateTime createTime; //创建时间
    private Integer creatorId; //创建人ID
    private Integer updateUserId; //更新人ID
    private LocalDateTime updateTime; //更新时间
    private Short departmentGrade;  //部门等级  1 顶级部门  2 二级部门  3 三级部门
    private Integer parentDepartmentId; //上级部门ID
    private Short delFlag; // 删除标志 0代表存在  2w代表删除
}
